package com.yannan.lock.web.mapper;

import com.yannan.lock.web.dto.*;
import com.yannan.lock.web.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface InstallationUserMapper {
    int insert(InstallationUser record);

    int insertSelective(InstallationUser record);

    List<CommunityRspDTO> getCommunityListByUserId(String userId);

    List<SelectGateWayByPlot> getBuildingInfoByCommunityId(InstallationuserRespon ir);

    List<SelectgetGateway> selectgetGateway(Map<String, Object> map);

    List<SelectgetGateway> selectgetFloor(Map<String, Object> map);

    List<SelectGateWayByPlot> selectUnitInfoByBuildingId(String buildingId);

    UserRspDTO getLoginUserByPhone(String phoneNumber);

    List<UnitInfoRspDTO> getUnitListBybuildingId(InstallationuserRespon ir);

    List<GateWayInfo> getGatewayListByunitId(PositionInfo p);

    List<LockInfo> getLockListByunitId(PositionInfo p);



    List<LockidANDnameDTO> getBindedLockListBygatewayId(String gatewayId);

    void GateLockBangDing(GateLockRealionInfoKey gl);

    void GateLockJieBang(GateLockRealionInfoKey gl);

    List<ImageRspDTO> getBuildingImageListByEnclosureInfo(EnclosureInfo e);

    void updateLockInfo(LockInfo l);

    void updateGateWayInfo(GateWayInfo g);

    void uodateLockInfoByLockId(GateLockRealionInfoKey gl);

    String getGatewanyByLockId(String lockId);
}